package com.tm.d22_interface2;


import com.tm.d16_polymorphism.Student;
import com.tm.d21_interface.A;
import com.tm.d21_interface.C;

/**
 * 2024/5/20 接口的好处 Cjj 14:58
 */
public class Test {
    public static void main(String[] args) {
       //目标：搞清楚使用接口的好处
        Singer s= new D();
        s.singer();

        Driver b = new B();
        b.driver();
    }
}
class B implements Driver{

    @Override
    public void driver() {

    }
}

class D extends School implements Driver, Singer{

    @Override
    public void driver() {

    }

    @Override
    public void singer() {

    }
}

class School{

}

interface Driver{
     void driver();
}

interface Singer{
    void singer();
}